package com.jcl.recruit.elasticsearch.server;

import com.jcl.core.resp.ApiResponse;
import com.jcl.recruit.elasticsearch.core.entity.ApiChannelAccountParam;
import com.jcl.recruit.elasticsearch.core.entity.ApiResumeCompleteParam;
import com.jcl.recruit.elasticsearch.core.entity.ApiResumeDownloadTaskParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName ProxyChannelServer

 * @Author yyliu
 * @Date 2018/11/13 10:23
 * @Version 1.0
 **/
@FeignClient(
        name = "recruit-api-cluster",
        path = "/api/crawler"
)
public interface ResumeApiProxy {

    @PostMapping(value = "/resume/complete")
    ApiResponse completeResume(@RequestBody ApiResumeCompleteParam param);

    @PostMapping(value = "/corp/account")
    ApiResponse accountList(@RequestBody ApiChannelAccountParam param);


    @PostMapping(value = "/resume/download/list")
    ApiResponse downResumeList(@RequestBody ApiResumeDownloadTaskParam param);
}
